import {createApp} from 'vue'
import './style.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/style/index.scss'
import App from './App.vue'

import {createPinia} from 'pinia'
import store from './store';
import i18n from './locales'
import router from './router/index'
// import 'amfe-flexible';

import * as ElementPlusIconsVue from '@element-plus/icons-vue'


// import VueAwesomeSwiper from "vue-awesome-swiper";
// import "swiper/css/swiper.css";

const app = createApp(App)
// app.config.globalProperties.$amapPromise = amapPromise;

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(store);
// app.use(VueAwesomeSwiper);
app.use(router);
app.use(createPinia())
app.use(ElementPlus)
app.use(i18n)

app.mount('#app')
